package com.jinlejia.erp.utils;

/**
 * Created by Administrator on 2018/5/2 0002.
 */

public class StringUtil {
    public static String valueOf(Object obj) {
        //return (obj == null) ? "" : obj.toString();
		return valueOf(obj,"");
    }
	
	public static String valueOf(Object obj,String defaultValue) {
        return (obj == null || obj.equals("")) ? defaultValue : obj.toString();
    }
}
